"""
环境配置示例文件
复制此文件为 env_local.py 并修改为你的实际配置
注意: env_local.py 不会被提交到git，请妥善保管
"""

# ==================== 应用配置 ====================
APP_NAME = "FaceRecognition API"
APP_VERSION = "1.0.0"
APP_ENV = "development"  # development, production, testing
APP_HOST = "0.0.0.0"
APP_PORT = 8001
DEBUG = True

# ==================== 数据库配置 ====================
DB_HOST = "localhost"
DB_PORT = 3306
DB_USER = "root"
DB_PASSWORD = "root123"  # 请修改为你的数据库密码
DB_NAME = "facereg_db"
DB_POOL_SIZE = 10
DB_MAX_OVERFLOW = 20

# ==================== 人脸识别配置 ====================
FACE_MODEL_NAME = "buffalo_l"
FACE_MODEL_ROOT = "./models/insightface"  # 本地模型存放路径（留空则使用默认 ~/.insightface）
FACE_DET_SIZE = "640,640"
FACE_DET_THRESH = 0.5
FACE_MATCH_THRESHOLD = 0.7
MIN_FACE_SIZE = 80

# ==================== FAISS索引配置 ====================
FAISS_INDEX_PATH = "./data/faiss_index/face_index.bin"
FAISS_DIMENSION = 512

# ==================== 日志配置 ====================
LOG_LEVEL = "INFO"  # DEBUG, INFO, WARNING, ERROR
LOG_PATH = "./logs"

